package com.yanqu.road.entity.activity.musicroomrank;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_activity_music_room_rank", autoSave = true, desc = "妙音坊冲榜 玩家数据")
public class UserMusicRoomRankData extends DataObject {
    @FieldTypeAnnotation(desc = "活动id", select = true, update = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "用户Id", select = true, update = true)
    private long userId;
    @FieldTypeAnnotation(desc = "累计使用时辰卡数量")
    private int cardUseAmount;
    @FieldTypeAnnotation(desc = "累计榜单积分,未加成")
    private long totalScore;
    @FieldTypeAnnotation(desc = "上一次未处理参数回合")
    private int lastJoinRound;

    public UserMusicRoomRankData() {
    }

    public UserMusicRoomRankData(int activityId, long userId) {
        this.activityId = activityId;
        this.userId = userId;
        setInsertOption();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getCardUseAmount() {
        return cardUseAmount;
    }

    public void setCardUseAmount(int cardUseAmount) {
        this.cardUseAmount = cardUseAmount;
        setUpdateOption();
    }

    public int getLastJoinRound() {
        return lastJoinRound;
    }

    public void setLastJoinRound(int lastJoinRound) {
        this.lastJoinRound = lastJoinRound;
        setUpdateOption();
    }

    public long getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(long totalScore) {
        this.totalScore = totalScore;
        setUpdateOption();
    }
}
